import 'package:flutter/material.dart';

class TextPage extends StatelessWidget {
  const TextPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text(
          "主页面",
          style: TextStyle(
            color: Colors.blue, // 设置字体颜色为蓝色
            fontSize: 18.25,
          ),
        ),
      ),
      body: Container(
        width: MediaQuery.of(context).size.width,
        height: 200,
        color: Colors.red,
        child: const Text(
          "这是一段话?这是一段话?这是一段话?这是一段话?这是一段话?这是一段话?这是一段话?这是一段话?这是一段话?",
          maxLines: 1,
          // softWrap: false,
          selectionColor: Colors.lightBlue,
          overflow: TextOverflow.ellipsis,
          style: TextStyle(
              color: Colors.cyanAccent,
              fontSize: 14.00,
              fontWeight: FontWeight.bold,
              fontStyle: FontStyle.italic,
              letterSpacing: 1.12,
              fontFamily: "DancingScript",
              // decoration: TextDecoration.overline,
              decorationColor: Colors.orange,
              decorationThickness: 3.12,
              decorationStyle: TextDecorationStyle.dotted,
              shadows: [
                Shadow(
                  color: Color.fromARGB(255, 111, 2, 253),
                  offset: Offset(1, 1),
                  blurRadius: 10,
                ),
                Shadow(
                  color: Color.fromARGB(255, 10, 32, 1),
                  offset: Offset(1, 1),
                  blurRadius: 10,
                )
              ]),
        ),
      ),
    );
  }
}
